<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page session="true" %>

<!-- 콘텐츠 영역 -->
<div id="BodyWrap">
       <section>
           <h4 class="pag_title" title="주문내역/배송조회">주문내역/배송조회</h4>
           <div id="ContentWrap4">
           	<section>
               	<ul class="myp_list2 mar_b12">
                       <li>
                           <div class="prd_title"><a href="/vhmall/item_detail.vh?prdcd=${orderinfoView.PRDCD}">${orderinfoView.PRDNM}</a></div>
                           <div class="ordlist">
                               <a href="/vhmall/item_detail.vh?prdcd=${orderinfoView.PRDCD}" class="thumb">
                                   <img src="http://www.vhmall.co.kr/inc/imgLoad.jsp?dirName=product/${orderinfoView.CORPNO}/&fileName=${orderinfoView.PRDIMG}&thumb=Y&quality=100&size=230" alt="">
                               </a>
                               <ol>
                                   <li><em>수량 :</em>${orderinfoView.ORDQTY}개</li>
                                   <li><em>옵션 :</em>
                                   <%/*c:choose>
										<c:when test="${ itemoption == null }">옵션없음</c:when>
										<c:otherwise>
				                           <c:forEach var="opt" items="${requestScope.itemoption}" varStatus="o">
				                           	<c:choose>
				                           	<c:when test="${ opt.SAPCD == orderinfoView.SAPCD }">${opt.PRDNONM}</c:when>
				                           	</c:choose>
				                           </c:forEach>
		                           		</c:otherwise>	
		                           </c:choose */%>
	                               </li>
                                   <li><em>결제상태 :</em>
	                               <c:choose>
										<c:when test="${ orderinfoView.ORDSTATCD == 'OD01' }">${ orderinfoView.CDNM }</c:when>
										<c:when test="${ orderinfoView.ORDSTATCD == 'OD02' }">${ orderinfoView.CDNM }</c:when>
										<c:otherwise>결제완료</c:otherwise>										
								   </c:choose>
	                               </li>
	                               <li><em>배송상태 :</em>
	                               <c:choose>
										<c:when test="${ orderinfoView.ORDSTATCD == 'OD03' }">
										<span class="ftc_red">배송준비중</span>
										</c:when>
										<c:when test="${ orderinfoView.ORDSTATCD == 'OD04' }">
											<span class="ftc_blue2">${items.CDNM}</span><a href="#" class="btninli_blk mar_l5" title="배송조회"><span class="btn_ins">배송조회</span></a>
										</c:when>
										<c:when test="${ orderinfoView.ORDSTATCD == 'OD03' }">배송완료</c:when>
										<c:otherwise>
										</c:otherwise>										
								   </c:choose>
	                               </li>
                                   <li><em>할인금액 :</em>-${orderinfoView.PURPRC-orderinfoView.SELPRC}원</span></li>
                                   <li><em>상품금액 :</em>${orderinfoView.STTLPRC}원</span></li>
                                   <c:choose>
                                   <c:when test="${ orderinfoView.ORDSTATCD == 'OD01' || orderinfoView.ORDSTATCD == 'OD02' }">
                                   <li class="mar_t5"><p class="btnposition_box">
                                           <a href="/vhmall/orderinfo_cancel.vh?ordno=${orderinfoView.ORDNO}" class="btn_inlistyle1 gradation_gray1 fts_s1" title="주문취소">주문취소</a>
                                       </p>
                                   </li>
                                   </c:when>
                                   </c:choose>
                               </ol>
                           </div>
                       </li>
                   </ul>
                   <div class="item_buytitarea" title="배송지 정보">배송지 정보
                   	<c:choose>
						<c:when test="${ orderinfoView.ORDSTATCD == 'OD04' }"><a href="#" class="btn_blostyle1 gradation_white2" title="배송조회">배송조회</a></c:when>
					</c:choose>
                   	
                   </div>
                   <table width="100%" border="0" cellpadding="0" cellspacing="0" class="item_callist" summary="배송 정보내역">
                   	<colgroup>
                <col style="width:33%">
                <col style="width:67%">
                </colgroup>
                <tr>
                	<th>배송상태</th>
                    <td class="ta_l">
                    <c:choose>
						<c:when test="${ orderinfoView.ORDSTATCD == 'OD03' }">${orderinfoView.CDNM}</c:when>
						<c:when test="${ orderinfoView.ORDSTATCD == 'OD04' }">${orderinfoView.CDNM}</c:when>
						<c:otherwise>${orderinfoView.CDNM}</c:otherwise>
					</c:choose>
                    </td>
                </tr>
                <!-- 
                <tr>
                	<th>우편번호</th>
                    <td class="ta_l">${orderinfo_detail.CDNM}</td>
                </tr>
                 -->
                <tr>
                	<th>주소</th>
                    <td class="ta_l">${orderinfoView.DLVADDR}</td>
                </tr>
            </table>
            <div class="item_buytitarea" title="결제방법">결제방법</div>
            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="item_callist" summary="결제 정보내역">
            	<colgroup>
                <col style="width:33%">
                <col style="width:67%">
                </colgroup>
                <tr>
                	<th>결제방법</th>
                    <td class="ta_l">
                    <c:choose>
                    	<c:when test="${ orderinfoView.LGD_PAYTYPE == 'SC0010' }">신용카드</c:when>
                    	<c:when test="${ orderinfoView.LGD_PAYTYPE == 'SC0040' }">무통장입금</c:when>
                    	<c:when test="${ orderinfoView.LGD_PAYTYPE == 'SC0060' }">휴대폰</c:when>
                    </c:choose>
                    </td>
                </tr>
                <tr>
                	<th>상품금액</th>
                    <td class="ta_l">${orderinfoView.SELPRC}원</td>
                </tr>
                <tr>
                	<th>배송비</th>
                    <td class="ta_l">0원</td>
                </tr>
                <tr>
                	<th>할인금액</th>
                    <td class="ta_l">${orderinfoView.PURPRC-orderinfoView.SELPRC}원(할인쿠폰 2,000원)</td>
                </tr>
                <tr>
                	<th>총결제금액</th>
                    <td class="ta_l"><span class="credit_price fts_1">${orderinfoView.LGD_AMOUNT}원(포인트 : 0원사용)</span></td>
                </tr>
            </table>
            <div class="item_buytitarea" title="받는사람 정보">받는사람 정보</div>
            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="item_callist" summary="받는사람 정보내역">
            	<colgroup>
                <col style="width:33%">
                <col style="width:67%">
                </colgroup>
                <tr>
                	<th>이름</th>
                    <td class="ta_l"> ${orderinfoView.LGD_BUYER}</td>
                </tr>
                <tr>
                	<th>휴대폰</th>
                    <td class="ta_l"> ${orderinfoView.PHONENO}</td>
                </tr>
            </table>
            <div class="phone_bd">
            	<div class="phoneat">1:1 전화문의</div>
                <div>
                	<a href="tel:15888529">
                    	<span class="telnumber dinbol">1588-8529</span><!--
                     --><span class="telcon"></span>
                    </a>
                </div>
            </div>
        </section>
    </div>
</section>
<!--// 콘텐츠 영역 -->